package com.atguigu.gulimail.product.service;

import com.atguigu.gulimail.product.entity.BrandEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimail.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author huangjianyun
 * @email 2409441649@qq.com
 * @date 2021-09-06 13:16:02
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //作用就是保存商品分类和品牌关联的的详细信息 品牌和商品分类的所有字段 brand_id category_id brand_name category_name
    void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);

    //修改关联表中的根据品牌id 进行修改品牌名称
    void updateBrand(Long brandId, String name);

    void updateCascade(Long catId, String name);

    List<BrandEntity> getBrandCatId(Long catId);

}

